package com.good.shopping.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.good.common.utils.PageUtils;
import com.good.shopping.member.entity.MemberEntity;
import com.good.shopping.member.vo.MemberUserLoginVo;
import com.good.shopping.member.vo.MemberUserRegisterVo;
import com.good.shopping.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author yan
 * @email 821521880@qq.com
 * @date 2022-01-29 11:54:37
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberUserRegisterVo vo);

    MemberEntity login(MemberUserLoginVo vo);

    /**
     * 社交用户的登录 - 微博登录
     * @param socialUser
     * @return
     */
    MemberEntity login(SocialUser socialUser) throws Exception;

    /**
     * 社交用户的登录 - 微信登录
     * @param accessTokenInfo
     * @return
     */
    MemberEntity login(String accessTokenInfo) throws Exception;

}

